package ecode

import (
	"github.com/zhufuyi/sponge/pkg/errcode"
)

// tkShop http service level error code
// each resource name corresponds to a unique number (http type), the number range is 1~100, if there is the same number, trigger panic
var (
	tkShopNO       = 5
	tkShopName     = "tkShop"
	tkShopBaseCode = errcode.HCode(tkShopNO)

	ErrCreateTkShop      = errcode.NewError(tkShopBaseCode+1, "failed to create "+tkShopName)
	ErrDeleteByIDTkShop  = errcode.NewError(tkShopBaseCode+2, "failed to delete "+tkShopName)
	ErrDeleteByIDsTkShop = errcode.NewError(tkShopBaseCode+3, "failed to delete by batch ids "+tkShopName)
	ErrUpdateByIDTkShop  = errcode.NewError(tkShopBaseCode+4, "failed to update "+tkShopName)
	ErrGetByIDTkShop     = errcode.NewError(tkShopBaseCode+5, "failed to get "+tkShopName+" details")
	ErrListByIDsTkShop   = errcode.NewError(tkShopBaseCode+6, "failed to list by batch ids "+tkShopName)
	ErrListTkShop        = errcode.NewError(tkShopBaseCode+7, "failed to list of "+tkShopName)
	// error codes are globally unique, adding 1 to the previous error code
)
